package edu.gatech.cs2340.tigershroud;

/**
 * This class is used to pass data to and from the database in nice, useable
 * objects that hold all necessary data for the users.
 * @author 
 *
 */
public class User 
{
	private long id;
	private String uname;
	private String pass;
	private String name;
	private String email;
	private String type;
	private String question;
	private String answer;
	
	/**
	 * Getter for the id number
	 * @return the id number for the user
	 */
	public long getId() 
	{
		return id;
	}
	
	/**
	 * Setter for the id
	 * @param the new id number for the user
	 */
	public void setId(long id) 
	{
		this.id = id;
	}
	
	/**
	 * Getter for the user name
	 * @return the user name of this instance of user
	 */
	public String getUserName() 
	{
		return uname;
	}

	/**
	 * Setter for the user name
	 * @param the new user name for the user
	 */
	public void setUserName(String uname) 
	{
		this.uname = uname;
	}
	
	/**
	 * Getter for the password
	 * @return the password for the user
	 */
	public String getPass() 
	{
		return pass;
	}
	
	/**
	 * Setter for the password
	 * @param the new password for the user
	 */
	public void setPass(String pass) 
	{
		this.pass = pass;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setEmail(String email)
	{
		this.email = email;
	}
	
	public String getEmail()
	{
		return email;
	}
	
	public void setType(String type)
	{
		this.type = type;
	}
	
	public String getType()
	{
		return type;
	}
	
	public void setQuestion(String question)
	{
		this.question = question;
	}
	
	public String getQuestion()
	{
		return question;
	}
	
	public void setAnswer(String answer)
	{
		this.answer = answer;
	}
	
	public String getAnswer()
	{
		return answer;
	}

	/**
	 * The toString of this class really just calls getName().
	 */
	@Override
	public String toString() 
	{
		return uname;
	}
}